body, div, p, span, button, dd, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, hr, input, legend, li, ol, p, pre, td, textarea, th, ul {
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    color: rgb(49,49,49);
    -webkit-overflow-scrolling: touch;
}

li, ul {
    list-style: none;
}

input {
    outline: none;
    border: 0;
}

.clearfix::before,
.clearfix::after {
    content: '';
    display: block;
    visibility: hidden;
    clear: both;
}

body, html {
    height: 100%;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    /*
      Introduced in IE 10.
      See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
    */
    -ms-user-select: none;
    user-select: none;
}

/**
 *  导航栏
**/
nav {
    background: #3C8BFC;
    width: 100%;
    height: 44px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

nav > span {
    width: 100%;
    height: 100%;
    display: block;
    color: white;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
}

nav > img {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 7px;
    left: 10px;
}

/**
 *  底部输入栏样式
**/
.inputBar {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 1px solid #d4d4d4;
    background-color: white;
}

.inputBar > div {
    width: 100%;
    height: 100%;
}

.inputBar .textBox div {
    background-color: greenyellow;
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    margin-top: 5px;
}

.inputBar .textBox .leftItem {
    left: 5px;
    background: url("../images/voice.png") no-repeat center center;
    background-size: 36px 36px;
}

.inputBar .textBox .rightItem {
    right: 10px;
    background: url("../images/send.png") no-repeat center center;
    background-size: 36px 36px;
}

.inputBar .textBox input {
    padding: 5px 56px 5px 50px;
    height: 100%;
    width: 100%;
    font-size: 17px;
}

.inputBar .voiceBox {
    display: none;
}

.inputBar .voiceBox .leftItem {
    position: absolute;
    top: 0;
    left: 5px;
    width: 40px;
    height: 40px;
    margin-top: 5px;
    background: url("../images/keyboard.png") no-repeat center center;
    background-size: 34px 34px;
}

.inputBar .voiceBox .recordBtn {
    color: #666666;
    text-align: center;
    border: 1px solid #d2d2d2;
    height: 36px;
    line-height: 36px;
    margin: 7px 15px 7px 50px;
}

/**
 *  消息列表样式
**/
.messageList {
    height: 100%;
    width: 100%;
    padding: 54px 0 60px;
    background: rgb(238,238,238);
    overflow: auto;
}

/*常见问题建议*/
.suggest {
    text-align: center;
}

.suggest .suggesstBox {
    margin-top: 10px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.suggest ul {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
}

.suggest ul li {
    height: 40px;
    line-height: 40px;
    font-size: 17px;
    color: blue;
    cursor: pointer;
    overflow: hidden;
}

.messageList .come {
    display: flex;
    flex-direction: row;
    padding: 10px 40px 10px 10px;
}

.messageList .to {
    padding: 10px 10px 10px 40px;
    display: flex;
    flex-direction: row-reverse;
}

/*头像*/
.messageList > div .avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    flex-shrink: 0;
}

.come .content,
.to .content,
.to .voice {
    padding: 8px;
    border-radius: 6px;
    position: relative;
    align-self: center;
    min-height: 40px;
    line-height: 24px;
}

/*进来的消息*/
.come .content {
    margin-left: 16px;
    background: white;
}

/*发出的消息*/
.to .content {
    margin-right: 16px;
    background: #25B9FD;
    color: white;
}

/*录音的消息*/
.to .voice {
    margin-right: 16px;
    background: #25B9FD;
    display: flex;
}

.come .content::after,
.to .content::after,
.to .voice::after {
    content: '◆';
    font-size: 22px;
    width: 22px;
    height: 22px;
    position: absolute;
    top: 8px;
}

.come .content::after {
    color: white;
    left: -10px;
}

.to .content::after {
    right: -10px;
    color: #25B9FD;
}

.to .voice::after {
    color: #25B9FD;
    right: -10px;
}

.to .voice .second {
    color: white;
    font-size: 18px;
}

.to .voice .voiceWave {
    margin-left: 5px;
    width: 24px;
    height: 24px;
    background: url("../images/soundWave.png");
    background-size: 24px 24px;
}

.to .voice .voiceWave.play {
    background: url("../images/soundWave2.gif");
    background-size: 24px 24px;
}


/*录音提示框*/
.recordToast {
    width: 160px;
    height: 160px;
    position: fixed;
    text-align: center;
    background-color: rgba(0,0,0,0.7);
    left: 50%;
    top: 50%;
    margin-top: -80px;
    margin-left: -80px;
    z-index: 999;
    display: none;
    color: white;
}

.recordToast .recordStatusIcon {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 20px;
    left: 50%;
    margin-left: -40px;
    background: url("../images/record.png");
    background-size: 80px 80px;
}

.recordToast .recordStatus {
    color: white;
    font-size: 16px;
    text-align: center;
    margin-top: 130px;
    background-color: transparent;
}

.recordToast.cancel .recordStatusIcon {
    background: url("../images/recall.png");
    background-size: 80px 80px;
}

.recordToast.cancel .recordStatus {
    background-color: red;
}